package com.cx.common.core.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * 查询条件
 * @date 2023.03.11
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@ApiModel(description = "查询条件")
public class QueryCondition {

    @ApiModelProperty(value = "当前页")
    private Integer pageNum;

    @ApiModelProperty(value = "分页大小")
    private Integer pageSize;

    @ApiModelProperty(value = "查询条件")
    private List<Predicate> predicates;

    @ApiModelProperty(value = "排序")
    private List<OrderBy> orderBy;
}
